toggle menu
Ktor Boost
common
switch theme
search in API
ktor-boost
/
[root]
/
RetryPolicy
/
RetryPolicy
Retry
Policy
constructor
(
maxRetries
:
Int
=
3
,
initialDelay
:
Duration
=
500.seconds / 1000
,
maxDelay
:
Duration
=
5.seconds
,
backoffFactor
:
Double
=
2.0
,
retryOnStatusCodes
:
Set
<
Int
>
=
setOf(408, 429, 500, 502, 503, 504)
,
retryOnRequestError
:
Boolean
=
true
)